from openai import OpenAI
from settings import DEEPSEEK_BASE_URL, DEEPSEEK_API_KEY
client = OpenAI(
    api_key=DEEPSEEK_API_KEY,
    base_url=DEEPSEEK_BASE_URL,
)

audio_file = open("../video/BV1LV411m7cq.mp3", "rb")
transcript = client.audio.transcriptions.create(
  file=audio_file,
  model="whisper-1",
  response_format="verbose_json",
  timestamp_granularities=["word"]
)

print(transcript)